import 'package:flutter/material.dart';


/*
首页左侧菜单栏布局
 */
class MyDrawer extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Drawer(
      child: new Column(
        children: <Widget>[
          new UserAccountsDrawerHeader(
              decoration: new BoxDecoration(
                  image: new DecorationImage(
                      image: new NetworkImage(
                          "http://t2.hddhhn.com/uploads/tu/201612/98/st93.png"))),
              accountName: new Text("Cissy"),
              accountEmail: new Text("赚钱养老公"),
              currentAccountPicture: new CircleAvatar(
                backgroundImage: new AssetImage("images/head.jpg"),
              )),
          new ListTile(
            leading: new Icon(Icons.refresh),
            title: new Text("刷新"),
          ),
          new ListTile(
            leading: new Icon(Icons.help),
            title: new Text("帮助"),
          ),
          new ListTile(
            leading: new Icon(Icons.settings),
            title: new Text("设置"),
          ),
        ],
      ),
    );
  }
}
